package com.rtech.operator;

import java.util.Scanner;

public class NumberIncrement {

	public static void main(String[] args) {

		NumberIncrement number = new NumberIncrement();

		Scanner sc = new Scanner(System.in);
		System.out.println("Enter Number - ");
		int x = sc.nextInt();

		int j = number.increment(x);
		System.out.println(j);

	}

	int increment(int x) {
		int y = ~x; // 1's complement of x
		return -y; // 2's complement of y
	}
}
